import request from '@/utils/request'

// 查询课表 管理列表
export function listCurriculum(query) {
  return request({
    url: '/teaching/curriculum/list',
    method: 'get',
    params: query
  })
}

// 查询校区、校区对应的学科、学科对应的班级
export function getCurriculumList() {
  return request({
    url: '/teaching/curriculum/getCurriculumList',
    method: 'get'
  })
}

// 查询课表 管理详细
export function getCurriculum(id) {
  return request({
    url: '/teaching/curriculum/' + id,
    method: 'get'
  })
}

// 新增课表 管理
export function addCurriculum(data) {
  return request({
    url: '/teaching/curriculum',
    method: 'post',
    data: data
  })
}

// 修改课表 管理
export function updateCurriculum(data) {
  return request({
    url: '/teaching/curriculum',
    method: 'put',
    data: data
  })
}

// 删除课表 管理
export function delCurriculum(id) {
  return request({
    url: '/teaching/curriculum/' + id,
    method: 'delete'
  })
}
